/*
@(#)WorkUser   2023-04-17
 
Copyright (c) 2011-2023 杭州湖畔网络技术有限公司 
保留所有权利 
本软件为杭州湖畔网络技术有限公司所有及包含机密信息，须遵守其相关许可证条款进行使用。
Copyright (c) 2011-2023 HUPUN Network Technology CO.,LTD.
All rights reserved.
This software is the confidential and proprietary information of HUPUN
Network Technology CO.,LTD("Confidential Information").  You shall not
disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement you entered into with HUPUN.
Website：http://www.hupun.com
*/
package org.obp.upms.model;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import org.obp.data.entity.BaseDO;

/**
 * @author: Jackey 2023/4/17
 */
@Data
@TableName("work_user")
public class WorkUserDO extends BaseDO {

    public static final String AES_KEY = "5npopykli7hsx837";

    private static final long serialVersionUID = 1783946419161484131L;

    /**
     * 国家
     */
    @ApiModelProperty("国家")
    private String nation;
    /**
     * 手机
     */
    @ApiModelProperty("手机")
    private String mobile;
    /**
     * 邮箱
     */
    @ApiModelProperty("邮箱")
    private String email;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    private String password;
    /**
     * 昵称
     */
    @ApiModelProperty("昵称")
    private String userName;
    /**
     * 头像
     */
    @ApiModelProperty("头像")
    private String userIcon;
    /**
     * 状态
     *
     * @see UserStatusEnum
     */
    @ApiModelProperty("状态")
    private Integer userStatus;
    /**
     * 超级管理员
     *
     * @see UserAdminEnum
     */
    @ApiModelProperty("超级管理员")
    private Integer admin;

    @Getter
    @AllArgsConstructor
    public enum UserStatusEnum {

        ENABLE(1, "正常"),
        DISABLE(0, "停用");

        public final int status;
        public final String desc;
    }

    @Getter
    @AllArgsConstructor
    public enum UserAdminEnum {

        NORMAL(0, "普通用户"),
        ADMIN(1, "超级管理员");

        public final int type;
        public final String desc;
    }

}